home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib15.dsk
/
CATDATE (CLOCK CARD).bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
63 lines
10 REM **********************
11 REM * CATALOG DATE HELLO *
12 REM * BY ARTHUR L. MENA *
13 REM * COPYRIGHT (C) 1983 *
14 REM * BY MICROSPARC, INC *
15 REM * LINCOLN, MA. 01773 *
16 REM **********************
120 REM
130 REM Apple clock version
140 REM
150 REM This version of the CATALOG
160 REM DATE program assumes you have
170 REM a Mountain Computer Appleclock
180 REM in slot #4. This program can
190 REM be easily modified to read the
200 REM date from other clock cards.
210 REM Consult the clock manuals for
220 REM details.
230 REM
270 REM
280 REM Poke CATDATE into memory
290 REM
300 RESTORE
310 FOR I = 44686 TO 44732
320 READ D: POKE I,D
330 NEXT I
340 TEXT : HOME : PRINT : PRINT " CATDATE INSTALLED"
350 REM
360 REM Poke JSR CATDATE into memory
370 REM
380 POKE 45611,32: POKE 45612,143: POKE 15613,174
390 POKE 45574,32: POKE 45575,143: POKE 45576,174
400 REM
410 REM Change file name length to 21
420 REM
430 POKE 45608,21: POKE 45571,21
440 REM
450 DATA 0,173,95,170,201,4,240,12,201,48,240,8,201,26,240,4,201,0,208,23,174,156,179,189,200,180,48,15,160,8,185,223,188,157,222,180,232,136,16,246
460 DATA 32,55,176,174,156,179,96
470 REM
480 REM Read date from Mountain Computer
490 REM Apple clock in slot four
500 REM
510 D$ = CHR$(4)
520 PRINT D$"IN#4"
530 PRINT D$"PR#4"
540 INPUT " ";T$
550 PRINT D$"IN#0"
560 PRINT D$"PR#0"
570 PRINT
580 YR$ = "/82 "
590 DT$ = LEFT$(T$,5) +YR$
600 DT = 48351: REM $BCDF
610 PRINT : PRINT : PRINT DT$" HAS BEEN INSTALLED AS THE CURRENT DATE"
620 REM
630 REM Poke date into memory
640 REM
650 J = 8
660 FOR I = 0 TO LEN(DT$) -1
670 POKE DT +J, ASC( MID$ (DT$,I +1,1)) +128
680 J = J -1
690 NEXT I
700 END